package com.zengjianjun.hive.demo.mapper.hive;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zengjianjun.hive.demo.entity.hive.HiveUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zengjianjun
 */
@Mapper
@DS("hive")
public interface HiveUserMapper extends BaseMapper<HiveUser> {

    /**
     * 获取用户列表
     *
     * @return 用户列表
     */
    List<HiveUser> findList();

    /**
     * 新增数据
     *
     * @param entity 数据实体
     */
    void saveEntity(@Param("param") HiveUser entity);
}
